
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="../三段/五月/jquery/jquery.js"></script>
    <style>
      body {
        position: relative;
        overflow-x: hidden;
      }
      #m {
        position: absolute;
        left: 1500px;
      }
      #imgs img {
        width: 100px;
        height: 100px;
      }
    </style>
  </head>
  <body>
    <div id="imgs">
      <img src="../img/1.png" alt="" />
      <img src="../img/2.png" alt="" />
      <img src="../img/3.jpg" alt="" />
      <img src="../img/4.jpg" alt="" />
      <img src="../img/5.jpg" alt="" />
    </div>
    <img id="m" width="400" height="300" src="../../img/1.png" alt="" />
  </body>
  <script>
    $(function () {
      $('#m').hide()
    })
    $('#imgs img').click(function () {
      $('#m').stop().show().css({ left: '1500px' })
      $('#m').attr('src', $(this).attr('src')).animate({left: '1164px',},3000).show()
    })
  </script>
</html>
